package org.jaaksi.test.tint;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;

public class MyActivity extends Activity
{
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		ImageView imageView = (ImageView) findViewById(R.id.imageView);
		// 对应 xml中的 tint属性
		imageView.setColorFilter(getResources().getColor(R.color.red));
	}
}
